package com.example.kaogong.sys.mapper;

import com.example.kaogong.sys.pojo.PaperQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.kaogong.sys.pojo.vo.PaperQuestionVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 试卷题目 Mapper 接口
 * </p>
 *
 * @author    
 * @since 2022-03-26
 */
@Mapper
public interface PaperQuestionMapper extends BaseMapper<PaperQuestion> {

    /**
     * 根据试卷编号和题目类型获取试卷题目
     * @param paperId
     * @param typeId
     * @return
     */
    List<PaperQuestionVo> getQuestionListByPaperIdAndTypeId(@Param("paperId") Integer paperId, @Param("typeId") int typeId);
}
